home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / pdcurs21 / portable / nl.c < prev    next >
C/C++ Source or Header  |  1993-06-18  |  1KB  |  49 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef    nl
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_nl = "$Header: C:\CURSES\portable\RCS\nl.c 2.1 1993/06/18 20:20:33 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   nl()    - enable/disable newline control
  15.  
  16.   X/Open Description:    nl()
  17.      This function enables the translation of newline into a
  18.      carriage return and a line-feed on output, and a carriage return
  19.      is translated into a newline on input.  Initially, the translations
  20.      do occur.  By disabling these translations, curses is able to
  21.      make better use of the line-feed capability, resulting in faster
  22.      cursor motion.
  23.  
  24.   PDCurses Description:
  25.  
  26.   X/Open Return Value:
  27.      The nl() function returns OK on success and ERR on error.
  28.  
  29.   X/Open Errors:
  30.      No errors are defined for this function.
  31.  
  32.   Portability:
  33.      PDCurses    int nl( void );
  34.      X/Open Dec '88    int nl( void );
  35.      BSD Curses    nonl() defined as a macro
  36.      SYS V Curses    int nl ( void );
  37.  
  38. **man-end**********************************************************************/
  39.  
  40. int    nl(void)
  41. {
  42. #ifdef PDCDEBUG
  43.     if (trace_on) PDC_debug("nl() - called\n");
  44. #endif
  45.  
  46.     _cursvar.autocr = TRUE;
  47.     return( OK );
  48. }
  49.